# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-python-dxf
_pkgname=python-dxf
pkgver=12.1.1
pkgrel=1
pkgdesc='Package for accessing a Docker v2 registry.'
url='https://pypi.org/project/python-dxf/#files'
arch=('any')
license=('MIT')
depends=('python' 'python-jwcrypto' 'python-tqdm' 'python-requests'
         'python-www-authenticate')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('d8a7f9674913e9be8a577db73bafef07a088ac07ccbd9dc4a4cb8f473dfede04f37a72b9e10a6675560928035b5c022d278710edff080803edea4d7025f0b20c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

